module.exports = (app) => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const SMSVerification = app.model.define('SMSVerification', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    tel: { type: STRING(11) },
    verticationCode: { type: STRING(6), field: 'vertication_code' },
    createdAt: { type: DATE, field: 'created_at' },
    updatedAt: { type: DATE, field: 'updated_at' },
  }, {
    tableName: 'sms_verifications'
  });

  return SMSVerification;
};
